package com.fancy.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户经验表实体类
 */
@Data
@TableName("t_user_experience")
public class UserExperience {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 当前经验值
     */
    private Integer currentExp;

    /**
     * 当前等级
     */
    private Integer currentLevel;

    /**
     * 总经验值
     */
    private Integer totalExp;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
